
<%@ page import="org.bjou.Branch" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'branch.label', default: 'Branch')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		
		<div id="show-branch" class="content scaffold-show" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list branch">
			
				<g:if test="${branchInstance?.branchName}">
				<li class="fieldcontain">
					<span id="branchName-label" class="property-label"><g:message code="branch.branchName.label" default="Branch Name" /></span>
					
						<span class="property-value" aria-labelledby="branchName-label"><g:fieldValue bean="${branchInstance}" field="branchName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${branchInstance?.branchType}">
				<li class="fieldcontain">
					<span id="branchType-label" class="property-label"><g:message code="branch.branchType.label" default="Branch Type" /></span>
					
						<span class="property-value" aria-labelledby="branchType-label"><g:fieldValue bean="${branchInstance}" field="branchType"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${branchInstance?.users}">
				<li class="fieldcontain">
					<span id="users-label" class="property-label"><g:message code="branch.users.label" default="Users" /></span>
					
						<g:each in="${branchInstance.users}" var="u">
						<span class="property-value" aria-labelledby="users-label"><g:link controller="shiroUser" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${branchInstance?.id}" />
					<g:link class="edit" action="edit" id="${branchInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		
		 </div>
          </div>
        </div>
      </div>
    </div>
	</body>
</html>
